package com.ccb.sc.common.modules.ad.vo;

import com.ccb.sc.common.modules.ad.enums.AdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 视图实体
 * </p>
 *
 * @author ken
 * @date 2020-10-05
 */
@Data
@ApiModel
@Accessors(chain = true)
public class AdVo implements Serializable {

    @NotNull
    private Long id;

    @ApiModelProperty(value = "广告位id")
    private Long adPositionId;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "广告类型")
    private AdType type;

    @ApiModelProperty(value = "关联id")
    private String associate;

    @ApiModelProperty(value = "排序号")
    private Integer orders;
}